package com.cx.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Goods1 entity. @author MyEclipse Persistence Tools
 */
@Table(name = "tableName")
public class Goods1 implements java.io.Serializable {

	// Fields
	
	private Integer id;
	private String name;
	private Double price;
	private String path;

	// Constructors

	/** default constructor */
	public Goods1() {
	}

	/** full constructor */
	public Goods1(String name, Double price, String path) {
		this.name = name;
		this.price = price;
		this.path = path;
	}

	// Property accessors
	@Id
	public Integer getId() {
		return this.id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name = "price")
	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	@Column(name = "path")
	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

}